<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Moo - Minimalist Object Orientation (with Moose compatibility) - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Moo - MetaCPAN" href="https://metacpan.org/dist/Moo/releases.rss" />
        <link rel="canonical" href="Moo.html" />
        <meta name="description" content="Minimalist Object Orientation (with Moose compatibility)" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Moo" />
<meta name="twitter:title"       content="Moo" />
<meta name="twitter:description" content="Minimalist Object Orientation (with Moose compatibility)" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="Moo.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Moo was released.">
      <span class="relatize">05 Jan 2023 20:56:38 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Moo">Moo</a>
  </li>
  <li>
    Module version: 2.005005
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Moo/source/lib/Moo.pm">Source</a>
    (<a href="https://metacpan.org/dist/Moo/source/lib/Moo.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Moo/source/lib">Browse</a>
    (<a href="https://metacpan.org/dist/Moo/source/lib?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Moo/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Moo/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/moose/Moo">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=Moo">Issues</a>
      (16)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Moo+2.005005" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/M/Moo.html?oncpan=1&amp;distmat=1&amp;version=2.005005&amp;grade=2" style="color: #090">3810</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/M/Moo.html?oncpan=1&amp;distmat=1&amp;version=2.005005&amp;grade=3" style="color: #900">0</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/M/Moo.html?oncpan=1&amp;distmat=1&amp;version=2.005005&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/HAARG/Moo-2.005005">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Moo who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 8
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Moo-2.005005/index.html">93.37% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.6.0
    </li>
    <li class="chat-banner">
      <div><a rel="noopener nofollow" target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.perl.org/#moose?nick=mc-guest-?">Chat with us!</a></div>
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Moo/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Moo-2.005005.tar.gz">
      Download (<span itemprop="fileSize">106.04KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FHAARG%2FMoo-2.005005%2Flib%2FMoo.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Moo/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Moo/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Moo">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Moo">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Moo.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="HAARG/Moo-2.005005"
>2.005005
  (HAARG on 2023-01-05)</option>
<option
  
  value="HAARG/Moo-2.005004"
>2.005004
  (HAARG on 2021-03-29)</option>
<option
  
  value="HAARG/Moo-2.005003"
>2.005003
  (HAARG on 2021-03-21)</option>
<option
  
  value="HAARG/Moo-2.005_002"
>2.005_002 DEV
  (HAARG on 2021-01-22)</option>
<option
  
  value="HAARG/Moo-2.005_001"
>2.005_001 DEV
  (HAARG on 2021-01-20)</option>
<option
  
  value="HAARG/Moo-2.005_000"
>2.005_000 DEV
  (HAARG on 2021-01-20)</option>
<option
  
  value="HAARG/Moo-2.004004"
>2.004004
  (HAARG on 2020-11-25)</option>
<option
  
  value="HAARG/Moo-2.004003"
>2.004003
  (HAARG on 2020-11-21)</option>
<option
  
  value="HAARG/Moo-2.004002"
>2.004002
  (HAARG on 2020-11-20)</option>
<option
  
  value="HAARG/Moo-2.004_001"
>2.004_001 DEV
  (HAARG on 2020-07-30)</option>
<option
  
  value="HAARG/Moo-2.004000"
>2.004000
  (HAARG on 2020-04-09)</option>
<option
  
  value="HAARG/Moo-2.003006"
>2.003006
  (HAARG on 2019-10-25)</option>
<option
  
  value="HAARG/Moo-2.003_005"
>2.003_005 DEV
  (HAARG on 2019-10-18)</option>
<option
  
  value="HAARG/Moo-2.003004"
>2.003004
  (HAARG on 2017-12-01)</option>
<option
  
  value="HAARG/Moo-2.003003"
>2.003003
  (HAARG on 2017-11-16)</option>
<option
  
  value="HAARG/Moo-2.003002"
>2.003002
  (HAARG on 2017-03-28)</option>
<option
  
  value="HAARG/Moo-2.003001"
>2.003001
  (HAARG on 2017-03-06)</option>
<option
  
  value="HAARG/Moo-2.003000"
>2.003000
  (HAARG on 2016-12-09)</option>
<option
  
  value="HAARG/Moo-2.002005"
>2.002005
  (HAARG on 2016-10-31)</option>
<option
  
  value="HAARG/Moo-2.002004"
>2.002004
  (HAARG on 2016-06-28)</option>
<option
  
  value="HAARG/Moo-2.002003"
>2.002003
  (HAARG on 2016-06-23)</option>
<option
  
  value="HAARG/Moo-2.002002"
>2.002002
  (HAARG on 2016-06-21)</option>
<option
  
  value="HAARG/Moo-2.002_001"
>2.002_001 DEV
  (HAARG on 2016-06-17)</option>
<option
  
  value="HAARG/Moo-2.002_000"
>2.002_000 DEV
  (HAARG on 2016-05-18)</option>
<option
  
  value="HAARG/Moo-2.001001"
>2.001001
  (HAARG on 2016-03-04)</option>
<option
  
  value="HAARG/Moo-2.001000"
>2.001000
  (HAARG on 2016-02-29)</option>
<option
  
  value="HAARG/Moo-2.000002"
>2.000002
  (HAARG on 2015-07-24)</option>
<option
  
  value="HAARG/Moo-2.000001"
>2.000001
  (HAARG on 2015-03-16)</option>
<option
  
  value="HAARG/Moo-2.000000"
>2.000000
  (HAARG on 2015-03-02)</option>
<option
  
  value="HAARG/Moo-1.999_001"
>1.999_001 DEV
  (HAARG on 2015-02-05)</option>
<option
  
  value="HAARG/Moo-1.007000"
>1.007000
  (HAARG on 2015-01-21)</option>
<option
  
  value="HAARG/Moo-1.006001"
>1.006001
  (HAARG on 2014-10-22)</option>
<option
  
  value="HAARG/Moo-1.006000"
>1.006000
  (HAARG on 2014-08-16)</option>
<option
  
  value="HAARG/Moo-1.005000"
>1.005000
  (HAARG on 2014-06-10)</option>
<option
  
  value="HAARG/Moo-1.004006"
>1.004006
  (HAARG on 2014-05-27)</option>
<option
  
  value="HAARG/Moo-1.004005"
>1.004005
  (HAARG on 2014-05-23)</option>
<option
  
  value="HAARG/Moo-1.004_004"
>1.004_004 DEV
  (HAARG on 2014-05-12)</option>
<option
  
  value="HAARG/Moo-1.004_003"
>1.004_003 DEV
  (HAARG on 2014-04-13)</option>
<option
  
  value="HAARG/Moo-1.004002"
>1.004002
  (HAARG on 2013-12-31)</option>
<option
  
  value="HAARG/Moo-1.004001"
>1.004001
  (HAARG on 2013-12-27)</option>
<option
  
  value="HAARG/Moo-1.004000"
>1.004000
  (HAARG on 2013-12-26)</option>
<option
  
  value="MSTROUT/Moo-1.003001"
>1.003001
  (MSTROUT on 2013-09-10)</option>
<option
  
  value="HAARG/Moo-1.003000"
>1.003000
  (HAARG on 2013-07-15)</option>
<option
  
  value="MSTROUT/Moo-1.002000"
>1.002000
  (MSTROUT on 2013-05-04)</option>
<option
  
  value="MSTROUT/Moo-1.001000"
>1.001000
  (MSTROUT on 2013-03-16)</option>
<option
  
  value="ILMARI/Moo-1.000006"
>1.000006
  (ILMARI on 2012-11-16)</option>
<option
  
  value="ILMARI/Moo-1.000005"
>1.000005
  (ILMARI on 2012-10-23)</option>
<option
  
  value="ILMARI/Moo-1.000003"
>1.000003
  (ILMARI on 2012-08-09)</option>
<option
  
  value="MITHALDU/Moo-0.091012"
>0.091012
  (MITHALDU on 2012-07-15)</option>
<optgroup label="BackPAN">'
<option
  
  value="MSTROUT/Moo-1.000008"
>1.000008
  (MSTROUT on 2013-02-06)</option>
<option
  
  value="MSTROUT/Moo-1.000007"
>1.000007
  (MSTROUT on 2012-12-15)</option>
<option
  
  value="MSTROUT/Moo-1.000004"
>1.000004
  (MSTROUT on 2012-10-03)</option>
<option
  
  value="MSTROUT/Moo-1.000002"
>1.000002
  (MSTROUT on 2012-08-04)</option>
<option
  
  value="MSTROUT/Moo-1.000001"
>1.000001
  (MSTROUT on 2012-07-21)</option>
<option
  
  value="MSTROUT/Moo-1.000000"
>1.000000
  (MSTROUT on 2012-07-18)</option>
<option
  
  value="MSTROUT/Moo-0.091014"
>0.091014
  (MSTROUT on 2012-07-16)</option>
<option
  
  value="MSTROUT/Moo-0.091013"
>0.091013
  (MSTROUT on 2012-07-15)</option>
<option
  
  value="MSTROUT/Moo-0.091011"
>0.091011
  (MSTROUT on 2012-06-27)</option>
<option
  
  value="MSTROUT/Moo-0.091010"
>0.091010
  (MSTROUT on 2012-06-26)</option>
<option
  
  value="MSTROUT/Moo-0.091009"
>0.091009
  (MSTROUT on 2012-06-20)</option>
<option
  
  value="MSTROUT/Moo-0.091008"
>0.091008
  (MSTROUT on 2012-06-19)</option>
<option
  
  value="MSTROUT/Moo-0.091007"
>0.091007
  (MSTROUT on 2012-05-17)</option>
<option
  
  value="MSTROUT/Moo-0.091006"
>0.091006
  (MSTROUT on 2012-05-16)</option>
<option
  
  value="MSTROUT/Moo-0.091005"
>0.091005
  (MSTROUT on 2012-05-14)</option>
<option
  
  value="MSTROUT/Moo-0.091004"
>0.091004
  (MSTROUT on 2012-05-07)</option>
<option
  
  value="MSTROUT/Moo-0.091003"
>0.091003
  (MSTROUT on 2012-05-06)</option>
<option
  
  value="MSTROUT/Moo-0.091002"
>0.091002
  (MSTROUT on 2012-05-05)</option>
<option
  
  value="MSTROUT/Moo-0.091001"
>0.091001
  (MSTROUT on 2012-05-02)</option>
<option
  
  value="MSTROUT/Moo-0.091000"
>0.091000
  (MSTROUT on 2012-04-27)</option>
<option
  
  value="MSTROUT/Moo-0.009_017"
>0.009_017 DEV
  (MSTROUT on 2012-04-16)</option>
<option
  
  value="MSTROUT/Moo-0.009_016"
>0.009_016 DEV
  (MSTROUT on 2012-04-12)</option>
<option
  
  value="MSTROUT/Moo-0.009_015"
>0.009_015 DEV
  (MSTROUT on 2012-04-11)</option>
<option
  
  value="MSTROUT/Moo-0.009014"
>0.009014
  (MSTROUT on 2012-03-29)</option>
<option
  
  value="RIBASUSHI/Moo-0.009013"
>0.009013
  (RIBASUSHI on 2011-12-23)</option>
<option
  
  value="MSTROUT/Moo-0.009012"
>0.009012
  (MSTROUT on 2011-11-15)</option>
<option
  
  value="MSTROUT/Moo-0.009011"
>0.009011
  (MSTROUT on 2011-10-03)</option>
<option
  
  value="MSTROUT/Moo-0.009010"
>0.009010
  (MSTROUT on 2011-07-20)</option>
<option
  
  value="MSTROUT/Moo-0.009009"
>0.009009
  (MSTROUT on 2011-07-20)</option>
<option
  
  value="MSTROUT/Moo-0.009008"
>0.009008
  (MSTROUT on 2011-06-03)</option>
<option
  
  value="MSTROUT/Moo-0.009007"
>0.009007
  (MSTROUT on 2011-02-25)</option>
<option
  
  value="MSTROUT/Moo-0.009006"
>0.009006
  (MSTROUT on 2011-02-25)</option>
<option
  
  value="MSTROUT/Moo-0.009005"
>0.009005
  (MSTROUT on 2011-01-11)</option>
<option
  
  value="MSTROUT/Moo-0.009004"
>0.009004
  (MSTROUT on 2010-12-13)</option>
<option
  
  value="MSTROUT/Moo-0.009003"
>0.009003
  (MSTROUT on 2010-12-05)</option>
<option
  
  value="MSTROUT/Moo-0.009002"
>0.009002
  (MSTROUT on 2010-11-17)</option>
<option
  
  value="MSTROUT/Moo-0.009001"
>0.009001
  (MSTROUT on 2010-11-16)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/HAARG/Moo-2.005005/diff/' + encodeURIComponent(this.value) + '/lib/Moo.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="HAARG/Moo-2.005005"
>2.005005
  (HAARG on 2023-01-05)</option>
<option
  
  value="HAARG/Moo-2.005004"
>2.005004
  (HAARG on 2021-03-29)</option>
<option
  
  value="HAARG/Moo-2.005003"
>2.005003
  (HAARG on 2021-03-21)</option>
<option
  
  value="HAARG/Moo-2.005_002"
>2.005_002 DEV
  (HAARG on 2021-01-22)</option>
<option
  
  value="HAARG/Moo-2.005_001"
>2.005_001 DEV
  (HAARG on 2021-01-20)</option>
<option
  
  value="HAARG/Moo-2.005_000"
>2.005_000 DEV
  (HAARG on 2021-01-20)</option>
<option
  
  value="HAARG/Moo-2.004004"
>2.004004
  (HAARG on 2020-11-25)</option>
<option
  
  value="HAARG/Moo-2.004003"
>2.004003
  (HAARG on 2020-11-21)</option>
<option
  
  value="HAARG/Moo-2.004002"
>2.004002
  (HAARG on 2020-11-20)</option>
<option
  
  value="HAARG/Moo-2.004_001"
>2.004_001 DEV
  (HAARG on 2020-07-30)</option>
<option
  
  value="HAARG/Moo-2.004000"
>2.004000
  (HAARG on 2020-04-09)</option>
<option
  
  value="HAARG/Moo-2.003006"
>2.003006
  (HAARG on 2019-10-25)</option>
<option
  
  value="HAARG/Moo-2.003_005"
>2.003_005 DEV
  (HAARG on 2019-10-18)</option>
<option
  
  value="HAARG/Moo-2.003004"
>2.003004
  (HAARG on 2017-12-01)</option>
<option
  
  value="HAARG/Moo-2.003003"
>2.003003
  (HAARG on 2017-11-16)</option>
<option
  
  value="HAARG/Moo-2.003002"
>2.003002
  (HAARG on 2017-03-28)</option>
<option
  
  value="HAARG/Moo-2.003001"
>2.003001
  (HAARG on 2017-03-06)</option>
<option
  
  value="HAARG/Moo-2.003000"
>2.003000
  (HAARG on 2016-12-09)</option>
<option
  
  value="HAARG/Moo-2.002005"
>2.002005
  (HAARG on 2016-10-31)</option>
<option
  
  value="HAARG/Moo-2.002004"
>2.002004
  (HAARG on 2016-06-28)</option>
<option
  
  value="HAARG/Moo-2.002003"
>2.002003
  (HAARG on 2016-06-23)</option>
<option
  
  value="HAARG/Moo-2.002002"
>2.002002
  (HAARG on 2016-06-21)</option>
<option
  
  value="HAARG/Moo-2.002_001"
>2.002_001 DEV
  (HAARG on 2016-06-17)</option>
<option
  
  value="HAARG/Moo-2.002_000"
>2.002_000 DEV
  (HAARG on 2016-05-18)</option>
<option
  
  value="HAARG/Moo-2.001001"
>2.001001
  (HAARG on 2016-03-04)</option>
<option
  
  value="HAARG/Moo-2.001000"
>2.001000
  (HAARG on 2016-02-29)</option>
<option
  
  value="HAARG/Moo-2.000002"
>2.000002
  (HAARG on 2015-07-24)</option>
<option
  
  value="HAARG/Moo-2.000001"
>2.000001
  (HAARG on 2015-03-16)</option>
<option
  
  value="HAARG/Moo-2.000000"
>2.000000
  (HAARG on 2015-03-02)</option>
<option
  
  value="HAARG/Moo-1.999_001"
>1.999_001 DEV
  (HAARG on 2015-02-05)</option>
<option
  
  value="HAARG/Moo-1.007000"
>1.007000
  (HAARG on 2015-01-21)</option>
<option
  
  value="HAARG/Moo-1.006001"
>1.006001
  (HAARG on 2014-10-22)</option>
<option
  
  value="HAARG/Moo-1.006000"
>1.006000
  (HAARG on 2014-08-16)</option>
<option
  
  value="HAARG/Moo-1.005000"
>1.005000
  (HAARG on 2014-06-10)</option>
<option
  
  value="HAARG/Moo-1.004006"
>1.004006
  (HAARG on 2014-05-27)</option>
<option
  
  value="HAARG/Moo-1.004005"
>1.004005
  (HAARG on 2014-05-23)</option>
<option
  
  value="HAARG/Moo-1.004_004"
>1.004_004 DEV
  (HAARG on 2014-05-12)</option>
<option
  
  value="HAARG/Moo-1.004_003"
>1.004_003 DEV
  (HAARG on 2014-04-13)</option>
<option
  
  value="HAARG/Moo-1.004002"
>1.004002
  (HAARG on 2013-12-31)</option>
<option
  
  value="HAARG/Moo-1.004001"
>1.004001
  (HAARG on 2013-12-27)</option>
<option
  
  value="HAARG/Moo-1.004000"
>1.004000
  (HAARG on 2013-12-26)</option>
<option
  
  value="MSTROUT/Moo-1.003001"
>1.003001
  (MSTROUT on 2013-09-10)</option>
<option
  
  value="HAARG/Moo-1.003000"
>1.003000
  (HAARG on 2013-07-15)</option>
<option
  
  value="MSTROUT/Moo-1.002000"
>1.002000
  (MSTROUT on 2013-05-04)</option>
<option
  
  value="MSTROUT/Moo-1.001000"
>1.001000
  (MSTROUT on 2013-03-16)</option>
<option
  
  value="ILMARI/Moo-1.000006"
>1.000006
  (ILMARI on 2012-11-16)</option>
<option
  
  value="ILMARI/Moo-1.000005"
>1.000005
  (ILMARI on 2012-10-23)</option>
<option
  
  value="ILMARI/Moo-1.000003"
>1.000003
  (ILMARI on 2012-08-09)</option>
<option
  
  value="MITHALDU/Moo-0.091012"
>0.091012
  (MITHALDU on 2012-07-15)</option>
<optgroup label="BackPAN">'
<option
  
  value="MSTROUT/Moo-1.000008"
>1.000008
  (MSTROUT on 2013-02-06)</option>
<option
  
  value="MSTROUT/Moo-1.000007"
>1.000007
  (MSTROUT on 2012-12-15)</option>
<option
  
  value="MSTROUT/Moo-1.000004"
>1.000004
  (MSTROUT on 2012-10-03)</option>
<option
  
  value="MSTROUT/Moo-1.000002"
>1.000002
  (MSTROUT on 2012-08-04)</option>
<option
  
  value="MSTROUT/Moo-1.000001"
>1.000001
  (MSTROUT on 2012-07-21)</option>
<option
  
  value="MSTROUT/Moo-1.000000"
>1.000000
  (MSTROUT on 2012-07-18)</option>
<option
  
  value="MSTROUT/Moo-0.091014"
>0.091014
  (MSTROUT on 2012-07-16)</option>
<option
  
  value="MSTROUT/Moo-0.091013"
>0.091013
  (MSTROUT on 2012-07-15)</option>
<option
  
  value="MSTROUT/Moo-0.091011"
>0.091011
  (MSTROUT on 2012-06-27)</option>
<option
  
  value="MSTROUT/Moo-0.091010"
>0.091010
  (MSTROUT on 2012-06-26)</option>
<option
  
  value="MSTROUT/Moo-0.091009"
>0.091009
  (MSTROUT on 2012-06-20)</option>
<option
  
  value="MSTROUT/Moo-0.091008"
>0.091008
  (MSTROUT on 2012-06-19)</option>
<option
  
  value="MSTROUT/Moo-0.091007"
>0.091007
  (MSTROUT on 2012-05-17)</option>
<option
  
  value="MSTROUT/Moo-0.091006"
>0.091006
  (MSTROUT on 2012-05-16)</option>
<option
  
  value="MSTROUT/Moo-0.091005"
>0.091005
  (MSTROUT on 2012-05-14)</option>
<option
  
  value="MSTROUT/Moo-0.091004"
>0.091004
  (MSTROUT on 2012-05-07)</option>
<option
  
  value="MSTROUT/Moo-0.091003"
>0.091003
  (MSTROUT on 2012-05-06)</option>
<option
  
  value="MSTROUT/Moo-0.091002"
>0.091002
  (MSTROUT on 2012-05-05)</option>
<option
  
  value="MSTROUT/Moo-0.091001"
>0.091001
  (MSTROUT on 2012-05-02)</option>
<option
  
  value="MSTROUT/Moo-0.091000"
>0.091000
  (MSTROUT on 2012-04-27)</option>
<option
  
  value="MSTROUT/Moo-0.009_017"
>0.009_017 DEV
  (MSTROUT on 2012-04-16)</option>
<option
  
  value="MSTROUT/Moo-0.009_016"
>0.009_016 DEV
  (MSTROUT on 2012-04-12)</option>
<option
  
  value="MSTROUT/Moo-0.009_015"
>0.009_015 DEV
  (MSTROUT on 2012-04-11)</option>
<option
  
  value="MSTROUT/Moo-0.009014"
>0.009014
  (MSTROUT on 2012-03-29)</option>
<option
  
  value="RIBASUSHI/Moo-0.009013"
>0.009013
  (RIBASUSHI on 2011-12-23)</option>
<option
  
  value="MSTROUT/Moo-0.009012"
>0.009012
  (MSTROUT on 2011-11-15)</option>
<option
  
  value="MSTROUT/Moo-0.009011"
>0.009011
  (MSTROUT on 2011-10-03)</option>
<option
  
  value="MSTROUT/Moo-0.009010"
>0.009010
  (MSTROUT on 2011-07-20)</option>
<option
  
  value="MSTROUT/Moo-0.009009"
>0.009009
  (MSTROUT on 2011-07-20)</option>
<option
  
  value="MSTROUT/Moo-0.009008"
>0.009008
  (MSTROUT on 2011-06-03)</option>
<option
  
  value="MSTROUT/Moo-0.009007"
>0.009007
  (MSTROUT on 2011-02-25)</option>
<option
  
  value="MSTROUT/Moo-0.009006"
>0.009006
  (MSTROUT on 2011-02-25)</option>
<option
  
  value="MSTROUT/Moo-0.009005"
>0.009005
  (MSTROUT on 2011-01-11)</option>
<option
  
  value="MSTROUT/Moo-0.009004"
>0.009004
  (MSTROUT on 2010-12-13)</option>
<option
  
  value="MSTROUT/Moo-0.009003"
>0.009003
  (MSTROUT on 2010-12-05)</option>
<option
  
  value="MSTROUT/Moo-0.009002"
>0.009002
  (MSTROUT on 2010-11-17)</option>
<option
  
  value="MSTROUT/Moo-0.009001"
>0.009001
  (MSTROUT on 2010-11-16)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/Class::Method::Modifiers" title="Class::Method::Modifiers" class="ellipsis">Class::Method::Modifiers</a></li>
  <li><a href="https://metacpan.org/pod/Exporter" title="Exporter" class="ellipsis">Exporter</a></li>
  <li><a href="./Role::Tiny.html" title="Role::Tiny" class="ellipsis">Role::Tiny</a></li>
  <li><a href="https://metacpan.org/pod/Scalar::Util" title="Scalar::Util" class="ellipsis">Scalar::Util</a></li>
  <li><a href="https://metacpan.org/pod/Sub::Defer" title="Sub::Defer" class="ellipsis">Sub::Defer</a></li>
  <li><a href="https://metacpan.org/pod/Sub::Quote" title="Sub::Quote" class="ellipsis">Sub::Quote</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Moo/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Moo">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Moo">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/HAARG/Moo-2.005005/view/lib/Moo.pm">This version</a>
    </li>
    <li>
      <a href="Moo.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/JAYALLEN"><img src="https://www.gravatar.com/avatar/34e155145f5145d2e30979313b334327?d=identicon&amp;s=20" title="JAYALLEN" alt="JAYALLEN"></a>
<a class="display-all" href="https://metacpan.org/author/BEROV"><img src="https://www.gravatar.com/avatar/eae0eb4092a9f63426c13408e343b803?d=identicon&amp;s=20" title="BEROV" alt="BEROV"></a>
<a class="display-all" href="https://metacpan.org/author/SRI"><img src="https://www.gravatar.com/avatar/bfa97d786f12ee3381f97bc909b88e11?d=identicon&amp;s=20" title="SRI" alt="SRI"></a>
<a class="display-all" href="https://metacpan.org/author/SSCAFFIDI"><img src="https://www.gravatar.com/avatar/2b2258ad3913c3d9a32123b905101a8b?d=identicon&amp;s=20" title="SSCAFFIDI" alt="SSCAFFIDI"></a>
<a class="display-all" href="https://metacpan.org/author/HAARG"><img src="https://www.gravatar.com/avatar/5037faf9ba40cf736778820fe83fc2ae?d=identicon&amp;s=20" title="HAARG" alt="HAARG"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Moo/plussers">160 PAUSE users</a>
</div>
<div>
    143 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-contrib-email="mst@shadowcat.co.uk"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      mst - Matt S. Trout (cpan:MSTROUT)
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/HAARG" class="author-name">Graham Knop</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Moo.pm&#39;" class="">
<option
  selected
  value="HAARG/Moo-2.005005"
>2.005005
  (HAARG on 2023-01-05)</option>
<option
  
  value="HAARG/Moo-2.005004"
>2.005004
  (HAARG on 2021-03-29)</option>
<option
  
  value="HAARG/Moo-2.005003"
>2.005003
  (HAARG on 2021-03-21)</option>
<option
  
  value="HAARG/Moo-2.005_002"
>2.005_002 DEV
  (HAARG on 2021-01-22)</option>
<option
  
  value="HAARG/Moo-2.005_001"
>2.005_001 DEV
  (HAARG on 2021-01-20)</option>
<option
  
  value="HAARG/Moo-2.005_000"
>2.005_000 DEV
  (HAARG on 2021-01-20)</option>
<option
  
  value="HAARG/Moo-2.004004"
>2.004004
  (HAARG on 2020-11-25)</option>
<option
  
  value="HAARG/Moo-2.004003"
>2.004003
  (HAARG on 2020-11-21)</option>
<option
  
  value="HAARG/Moo-2.004002"
>2.004002
  (HAARG on 2020-11-20)</option>
<option
  
  value="HAARG/Moo-2.004_001"
>2.004_001 DEV
  (HAARG on 2020-07-30)</option>
<option
  
  value="HAARG/Moo-2.004000"
>2.004000
  (HAARG on 2020-04-09)</option>
<option
  
  value="HAARG/Moo-2.003006"
>2.003006
  (HAARG on 2019-10-25)</option>
<option
  
  value="HAARG/Moo-2.003_005"
>2.003_005 DEV
  (HAARG on 2019-10-18)</option>
<option
  
  value="HAARG/Moo-2.003004"
>2.003004
  (HAARG on 2017-12-01)</option>
<option
  
  value="HAARG/Moo-2.003003"
>2.003003
  (HAARG on 2017-11-16)</option>
<option
  
  value="HAARG/Moo-2.003002"
>2.003002
  (HAARG on 2017-03-28)</option>
<option
  
  value="HAARG/Moo-2.003001"
>2.003001
  (HAARG on 2017-03-06)</option>
<option
  
  value="HAARG/Moo-2.003000"
>2.003000
  (HAARG on 2016-12-09)</option>
<option
  
  value="HAARG/Moo-2.002005"
>2.002005
  (HAARG on 2016-10-31)</option>
<option
  
  value="HAARG/Moo-2.002004"
>2.002004
  (HAARG on 2016-06-28)</option>
<option
  
  value="HAARG/Moo-2.002003"
>2.002003
  (HAARG on 2016-06-23)</option>
<option
  
  value="HAARG/Moo-2.002002"
>2.002002
  (HAARG on 2016-06-21)</option>
<option
  
  value="HAARG/Moo-2.002_001"
>2.002_001 DEV
  (HAARG on 2016-06-17)</option>
<option
  
  value="HAARG/Moo-2.002_000"
>2.002_000 DEV
  (HAARG on 2016-05-18)</option>
<option
  
  value="HAARG/Moo-2.001001"
>2.001001
  (HAARG on 2016-03-04)</option>
<option
  
  value="HAARG/Moo-2.001000"
>2.001000
  (HAARG on 2016-02-29)</option>
<option
  
  value="HAARG/Moo-2.000002"
>2.000002
  (HAARG on 2015-07-24)</option>
<option
  
  value="HAARG/Moo-2.000001"
>2.000001
  (HAARG on 2015-03-16)</option>
<option
  
  value="HAARG/Moo-2.000000"
>2.000000
  (HAARG on 2015-03-02)</option>
<option
  
  value="HAARG/Moo-1.999_001"
>1.999_001 DEV
  (HAARG on 2015-02-05)</option>
<option
  
  value="HAARG/Moo-1.007000"
>1.007000
  (HAARG on 2015-01-21)</option>
<option
  
  value="HAARG/Moo-1.006001"
>1.006001
  (HAARG on 2014-10-22)</option>
<option
  
  value="HAARG/Moo-1.006000"
>1.006000
  (HAARG on 2014-08-16)</option>
<option
  
  value="HAARG/Moo-1.005000"
>1.005000
  (HAARG on 2014-06-10)</option>
<option
  
  value="HAARG/Moo-1.004006"
>1.004006
  (HAARG on 2014-05-27)</option>
<option
  
  value="HAARG/Moo-1.004005"
>1.004005
  (HAARG on 2014-05-23)</option>
<option
  
  value="HAARG/Moo-1.004_004"
>1.004_004 DEV
  (HAARG on 2014-05-12)</option>
<option
  
  value="HAARG/Moo-1.004_003"
>1.004_003 DEV
  (HAARG on 2014-04-13)</option>
<option
  
  value="HAARG/Moo-1.004002"
>1.004002
  (HAARG on 2013-12-31)</option>
<option
  
  value="HAARG/Moo-1.004001"
>1.004001
  (HAARG on 2013-12-27)</option>
<option
  
  value="HAARG/Moo-1.004000"
>1.004000
  (HAARG on 2013-12-26)</option>
<option
  
  value="MSTROUT/Moo-1.003001"
>1.003001
  (MSTROUT on 2013-09-10)</option>
<option
  
  value="HAARG/Moo-1.003000"
>1.003000
  (HAARG on 2013-07-15)</option>
<option
  
  value="MSTROUT/Moo-1.002000"
>1.002000
  (MSTROUT on 2013-05-04)</option>
<option
  
  value="MSTROUT/Moo-1.001000"
>1.001000
  (MSTROUT on 2013-03-16)</option>
<option
  
  value="ILMARI/Moo-1.000006"
>1.000006
  (ILMARI on 2012-11-16)</option>
<option
  
  value="ILMARI/Moo-1.000005"
>1.000005
  (ILMARI on 2012-10-23)</option>
<option
  
  value="ILMARI/Moo-1.000003"
>1.000003
  (ILMARI on 2012-08-09)</option>
<option
  
  value="MITHALDU/Moo-0.091012"
>0.091012
  (MITHALDU on 2012-07-15)</option>
<optgroup label="BackPAN">'
<option
  
  value="MSTROUT/Moo-1.000008"
>1.000008
  (MSTROUT on 2013-02-06)</option>
<option
  
  value="MSTROUT/Moo-1.000007"
>1.000007
  (MSTROUT on 2012-12-15)</option>
<option
  
  value="MSTROUT/Moo-1.000004"
>1.000004
  (MSTROUT on 2012-10-03)</option>
<option
  
  value="MSTROUT/Moo-1.000002"
>1.000002
  (MSTROUT on 2012-08-04)</option>
<option
  
  value="MSTROUT/Moo-1.000001"
>1.000001
  (MSTROUT on 2012-07-21)</option>
<option
  
  value="MSTROUT/Moo-1.000000"
>1.000000
  (MSTROUT on 2012-07-18)</option>
<option
  
  value="MSTROUT/Moo-0.091014"
>0.091014
  (MSTROUT on 2012-07-16)</option>
<option
  
  value="MSTROUT/Moo-0.091013"
>0.091013
  (MSTROUT on 2012-07-15)</option>
<option
  
  value="MSTROUT/Moo-0.091011"
>0.091011
  (MSTROUT on 2012-06-27)</option>
<option
  
  value="MSTROUT/Moo-0.091010"
>0.091010
  (MSTROUT on 2012-06-26)</option>
<option
  
  value="MSTROUT/Moo-0.091009"
>0.091009
  (MSTROUT on 2012-06-20)</option>
<option
  
  value="MSTROUT/Moo-0.091008"
>0.091008
  (MSTROUT on 2012-06-19)</option>
<option
  
  value="MSTROUT/Moo-0.091007"
>0.091007
  (MSTROUT on 2012-05-17)</option>
<option
  
  value="MSTROUT/Moo-0.091006"
>0.091006
  (MSTROUT on 2012-05-16)</option>
<option
  
  value="MSTROUT/Moo-0.091005"
>0.091005
  (MSTROUT on 2012-05-14)</option>
<option
  
  value="MSTROUT/Moo-0.091004"
>0.091004
  (MSTROUT on 2012-05-07)</option>
<option
  
  value="MSTROUT/Moo-0.091003"
>0.091003
  (MSTROUT on 2012-05-06)</option>
<option
  
  value="MSTROUT/Moo-0.091002"
>0.091002
  (MSTROUT on 2012-05-05)</option>
<option
  
  value="MSTROUT/Moo-0.091001"
>0.091001
  (MSTROUT on 2012-05-02)</option>
<option
  
  value="MSTROUT/Moo-0.091000"
>0.091000
  (MSTROUT on 2012-04-27)</option>
<option
  
  value="MSTROUT/Moo-0.009_017"
>0.009_017 DEV
  (MSTROUT on 2012-04-16)</option>
<option
  
  value="MSTROUT/Moo-0.009_016"
>0.009_016 DEV
  (MSTROUT on 2012-04-12)</option>
<option
  
  value="MSTROUT/Moo-0.009_015"
>0.009_015 DEV
  (MSTROUT on 2012-04-11)</option>
<option
  
  value="MSTROUT/Moo-0.009014"
>0.009014
  (MSTROUT on 2012-03-29)</option>
<option
  
  value="RIBASUSHI/Moo-0.009013"
>0.009013
  (RIBASUSHI on 2011-12-23)</option>
<option
  
  value="MSTROUT/Moo-0.009012"
>0.009012
  (MSTROUT on 2011-11-15)</option>
<option
  
  value="MSTROUT/Moo-0.009011"
>0.009011
  (MSTROUT on 2011-10-03)</option>
<option
  
  value="MSTROUT/Moo-0.009010"
>0.009010
  (MSTROUT on 2011-07-20)</option>
<option
  
  value="MSTROUT/Moo-0.009009"
>0.009009
  (MSTROUT on 2011-07-20)</option>
<option
  
  value="MSTROUT/Moo-0.009008"
>0.009008
  (MSTROUT on 2011-06-03)</option>
<option
  
  value="MSTROUT/Moo-0.009007"
>0.009007
  (MSTROUT on 2011-02-25)</option>
<option
  
  value="MSTROUT/Moo-0.009006"
>0.009006
  (MSTROUT on 2011-02-25)</option>
<option
  
  value="MSTROUT/Moo-0.009005"
>0.009005
  (MSTROUT on 2011-01-11)</option>
<option
  
  value="MSTROUT/Moo-0.009004"
>0.009004
  (MSTROUT on 2010-12-13)</option>
<option
  
  value="MSTROUT/Moo-0.009003"
>0.009003
  (MSTROUT on 2010-12-05)</option>
<option
  
  value="MSTROUT/Moo-0.009002"
>0.009002
  (MSTROUT on 2010-11-17)</option>
<option
  
  value="MSTROUT/Moo-0.009001"
>0.009001
  (MSTROUT on 2010-11-16)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Moo">Moo-2.005005</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage four &#10;
          • 2117 direct dependents &#10;          • 5269 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Moo-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Moo-2.005005">
    <input type="hidden" name="author" value="HAARG">
    <input type="hidden" name="distribution" value="Moo">
    <button type="submit" class="favorite highlight"><span>303</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="Moo.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>303</span> ++</a>
</div>
   / <span>Moo</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="Moo.html#NAME">NAME</a></li>
  <li><a href="Moo.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="Moo.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="Moo.html#WHY-MOO-EXISTS">WHY MOO EXISTS</a></li>
  <li><a href="Moo.html#MOO-AND-MOOSE">MOO AND MOOSE</a></li>
  <li><a href="Moo.html#MOO-AND-CLASS::XSACCESSOR">MOO AND CLASS::XSACCESSOR</a></li>
  <li><a href="Moo.html#MOO-VERSUS-ANY::MOOSE">MOO VERSUS ANY::MOOSE</a></li>
  <li><a href="Moo.html#PUBLIC-METHODS">PUBLIC METHODS</a>
    <ul>
      <li><a href="Moo.html#new">new</a></li>
      <li><a href="Moo.html#does">does</a></li>
      <li><a href="Moo.html#DOES">DOES</a></li>
      <li><a href="Moo.html#meta">meta</a></li>
    </ul>
  </li>
  <li><a href="Moo.html#LIFECYCLE-METHODS">LIFECYCLE METHODS</a>
    <ul>
      <li><a href="Moo.html#BUILDARGS">BUILDARGS</a></li>
      <li><a href="Moo.html#FOREIGNBUILDARGS">FOREIGNBUILDARGS</a></li>
      <li><a href="Moo.html#BUILD">BUILD</a></li>
      <li><a href="Moo.html#DEMOLISH">DEMOLISH</a></li>
    </ul>
  </li>
  <li><a href="Moo.html#IMPORTED-SUBROUTINES">IMPORTED SUBROUTINES</a>
    <ul>
      <li><a href="Moo.html#extends">extends</a></li>
      <li><a href="Moo.html#with">with</a></li>
      <li><a href="Moo.html#has">has</a></li>
      <li><a href="Moo.html#before">before</a></li>
      <li><a href="Moo.html#around">around</a></li>
      <li><a href="Moo.html#after">after</a></li>
    </ul>
  </li>
  <li><a href="Moo.html#SUB-QUOTE-AWARE">SUB QUOTE AWARE</a></li>
  <li><a href="Moo.html#CLEANING-UP-IMPORTS">CLEANING UP IMPORTS</a></li>
  <li><a href="Moo.html#INCOMPATIBILITIES-WITH-MOOSE">INCOMPATIBILITIES WITH MOOSE</a>
    <ul>
      <li><a href="Moo.html#TYPES">TYPES</a></li>
      <li><a href="Moo.html#API-INCOMPATIBILITIES">API INCOMPATIBILITIES</a></li>
      <li><a href="Moo.html#META-OBJECT">META OBJECT</a></li>
      <li><a href="Moo.html#IMMUTABILITY">IMMUTABILITY</a></li>
    </ul>
  </li>
  <li><a href="Moo.html#COMPATIBILITY-WITH-OLDER-PERL-VERSIONS">COMPATIBILITY WITH OLDER PERL VERSIONS</a></li>
  <li><a href="Moo.html#SUPPORT">SUPPORT</a></li>
  <li><a href="Moo.html#AUTHOR">AUTHOR</a></li>
  <li><a href="Moo.html#CONTRIBUTORS">CONTRIBUTORS</a></li>
  <li><a href="Moo.html#COPYRIGHT">COPYRIGHT</a></li>
  <li><a href="Moo.html#LICENSE">LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Moo - Minimalist Object Orientation (with Moose compatibility)</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>  package Cat::Food;

  use Moo;
  use strictures 2;
  use namespace::clean;

  sub feed_lion {
    my $self = shift;
    my $amount = shift || 1;

    $self-&gt;pounds( $self-&gt;pounds - $amount );
  }

  has taste =&gt; (
    is =&gt; &#39;ro&#39;,
  );

  has brand =&gt; (
    is  =&gt; &#39;ro&#39;,
    isa =&gt; sub {
      die &quot;Only SWEET-TREATZ supported!&quot; unless $_[0] eq &#39;SWEET-TREATZ&#39;
    },
  );

  has pounds =&gt; (
    is  =&gt; &#39;rw&#39;,
    isa =&gt; sub { die &quot;$_[0] is too much cat food!&quot; unless $_[0] &lt; 15 },
  );

  1;</code></pre>

<p>And elsewhere:</p>

<pre><code>  my $full = Cat::Food-&gt;new(
      taste  =&gt; &#39;DELICIOUS.&#39;,
      brand  =&gt; &#39;SWEET-TREATZ&#39;,
      pounds =&gt; 10,
  );

  $full-&gt;feed_lion;

  say $full-&gt;pounds;</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p><code>Moo</code> is an extremely light-weight Object Orientation system. It allows one to concisely define objects and roles with a convenient syntax that avoids the details of Perl&#39;s object system. <code>Moo</code> contains a subset of <a href="Moose.html">Moose</a> and is optimised for rapid startup.</p>

<p><code>Moo</code> avoids depending on any XS modules to allow for simple deployments. The name <code>Moo</code> is based on the idea that it provides almost -- but not quite -- two thirds of <a href="Moose.html">Moose</a>. As such, the <a href="https://metacpan.org/pod/Moose::Manual">Moose::Manual</a> can serve as an effective guide to <code>Moo</code> aside from the MOP and Types sections.</p>

<p>Unlike <a href="https://metacpan.org/pod/Mouse">Mouse</a> this module does not aim at full compatibility with <a href="Moose.html">Moose</a>&#39;s surface syntax, preferring instead to provide full interoperability via the metaclass inflation capabilities described in <a href="Moo.html#MOO-AND-MOOSE">&quot;MOO AND MOOSE&quot;</a>.</p>

<p>For a full list of the minor differences between <a href="Moose.html">Moose</a> and <a href="Moo.html">Moo</a>&#39;s surface syntax, see <a href="Moo.html#INCOMPATIBILITIES-WITH-MOOSE">&quot;INCOMPATIBILITIES WITH MOOSE&quot;</a>.</p>

<h1 id="WHY-MOO-EXISTS"><a id="WHY"></a>WHY MOO EXISTS</h1>

<p>If you want a full object system with a rich Metaprotocol, <a href="Moose.html">Moose</a> is already wonderful.</p>

<p>But if you don&#39;t want to use <a href="Moose.html">Moose</a>, you may not want &quot;less metaprotocol&quot; like <a href="https://metacpan.org/pod/Mouse">Mouse</a> offers, but you probably want &quot;no metaprotocol&quot;, which is what Moo provides. <code>Moo</code> is ideal for some situations where deployment or startup time precludes using <a href="Moose.html">Moose</a> and <a href="https://metacpan.org/pod/Mouse">Mouse</a>:</p>

<ul>

<li><p>A command line or CGI script where fast startup is essential</p>

</li>
<li><p>code designed to be deployed as a single file via <a href="https://metacpan.org/pod/App::FatPacker">App::FatPacker</a></p>

</li>
<li><p>A CPAN module that may be used by others in the above situations</p>

</li>
</ul>

<p><code>Moo</code> maintains transparent compatibility with <a href="Moose.html">Moose</a> so if you install and load <a href="Moose.html">Moose</a> you can use Moo classes and roles in <a href="Moose.html">Moose</a> code without modification.</p>

<p>Moo -- Minimal Object Orientation -- aims to make it smooth to upgrade to <a href="Moose.html">Moose</a> when you need more than the minimal features offered by Moo.</p>

<h1 id="MOO-AND-MOOSE"><a id="MOO"></a>MOO AND MOOSE</h1>

<p>If <a href="Moo.html">Moo</a> detects <a href="Moose.html">Moose</a> being loaded, it will automatically register metaclasses for your <a href="Moo.html">Moo</a> and <a href="https://metacpan.org/pod/Moo::Role">Moo::Role</a> packages, so you should be able to use them in <a href="Moose.html">Moose</a> code without modification.</p>

<p><a href="Moo.html">Moo</a> will also create <a href="https://metacpan.org/pod/Moose::Manual::Types">Moose type constraints</a> for <a href="Moo.html">Moo</a> classes and roles, so that in Moose classes <code>isa =&gt; &#39;MyMooClass&#39;</code> and <code>isa =&gt; &#39;MyMooRole&#39;</code> work the same as for <a href="Moose.html">Moose</a> classes and roles.</p>

<p>Extending a <a href="Moose.html">Moose</a> class or consuming a <a href="https://metacpan.org/pod/Moose::Role">Moose::Role</a> will also work.</p>

<p>Extending a <a href="https://metacpan.org/pod/Mouse">Mouse</a> class or consuming a <a href="https://metacpan.org/pod/Mouse::Role">Mouse::Role</a> will also work. But note that we don&#39;t provide <a href="https://metacpan.org/pod/Mouse">Mouse</a> metaclasses or metaroles so the other way around doesn&#39;t work. This feature exists for <a href="https://metacpan.org/pod/Any::Moose">Any::Moose</a> users porting to <a href="Moo.html">Moo</a>; enabling <a href="https://metacpan.org/pod/Mouse">Mouse</a> users to use <a href="Moo.html">Moo</a> classes is not a priority for us.</p>

<p>This means that there is no need for anything like <a href="https://metacpan.org/pod/Any::Moose">Any::Moose</a> for Moo code - Moo and Moose code should simply interoperate without problem. To handle <a href="https://metacpan.org/pod/Mouse">Mouse</a> code, you&#39;ll likely need an empty Moo role or class consuming or extending the <a href="https://metacpan.org/pod/Mouse">Mouse</a> stuff since it doesn&#39;t register true <a href="Moose.html">Moose</a> metaclasses like <a href="Moo.html">Moo</a> does.</p>

<p>If you need to disable the metaclass creation, add:</p>

<pre><code>  no Moo::sification;</code></pre>

<p>to your code before Moose is loaded, but bear in mind that this switch is global and turns the mechanism off entirely so don&#39;t put this in library code.</p>

<h1 id="MOO-AND-CLASS::XSACCESSOR"><a id="MOO1"></a>MOO AND CLASS::XSACCESSOR</h1>

<p>If a new enough version of <a href="https://metacpan.org/pod/Class::XSAccessor">Class::XSAccessor</a> is available, it will be used to generate simple accessors, readers, and writers for better performance. Simple accessors are those without lazy defaults, type checks/coercions, or triggers. Simple readers are those without lazy defaults. Readers and writers generated by <a href="https://metacpan.org/pod/Class::XSAccessor">Class::XSAccessor</a> will behave slightly differently: they will reject attempts to call them with the incorrect number of parameters.</p>

<h1 id="MOO-VERSUS-ANY::MOOSE"><a id="MOO2"></a>MOO VERSUS ANY::MOOSE</h1>

<p><a href="https://metacpan.org/pod/Any::Moose">Any::Moose</a> will load <a href="https://metacpan.org/pod/Mouse">Mouse</a> normally, and <a href="Moose.html">Moose</a> in a program using <a href="Moose.html">Moose</a> - which theoretically allows you to get the startup time of <a href="https://metacpan.org/pod/Mouse">Mouse</a> without disadvantaging <a href="Moose.html">Moose</a> users.</p>

<p>Sadly, this doesn&#39;t entirely work, since the selection is load order dependent - <a href="Moo.html">Moo</a>&#39;s metaclass inflation system explained above in <a href="Moo.html#MOO-AND-MOOSE">&quot;MOO AND MOOSE&quot;</a> is significantly more reliable.</p>

<p>So if you want to write a CPAN module that loads fast or has only pure perl dependencies but is also fully usable by <a href="Moose.html">Moose</a> users, you should be using <a href="Moo.html">Moo</a>.</p>

<p>For a full explanation, see the article <a href="https://shadow.cat/blog/matt-s-trout/moo-versus-any-moose">https://shadow.cat/blog/matt-s-trout/moo-versus-any-moose</a> which explains the differing strategies in more detail and provides a direct example of where <a href="Moo.html">Moo</a> succeeds and <a href="https://metacpan.org/pod/Any::Moose">Any::Moose</a> fails.</p>

<h1 id="PUBLIC-METHODS"><a id="PUBLIC"></a>PUBLIC METHODS</h1>

<p>Moo provides several methods to any class using it.</p>

<h2 id="new">new</h2>

<pre><code>  Foo::Bar-&gt;new( attr1 =&gt; 3 );</code></pre>

<p>or</p>

<pre><code>  Foo::Bar-&gt;new({ attr1 =&gt; 3 });</code></pre>

<p>The constructor for the class. By default it will accept attributes either as a hashref, or a list of key value pairs. This can be customized with the <a href="Moo.html#BUILDARGS">&quot;BUILDARGS&quot;</a> method.</p>

<h2 id="does">does</h2>

<pre><code>  if ($foo-&gt;does(&#39;Some::Role1&#39;)) {
    ...
  }</code></pre>

<p>Returns true if the object composes in the passed role.</p>

<h2 id="DOES">DOES</h2>

<pre><code>  if ($foo-&gt;DOES(&#39;Some::Role1&#39;) || $foo-&gt;DOES(&#39;Some::Class1&#39;)) {
    ...
  }</code></pre>

<p>Similar to <a href="Moo.html#does">&quot;does&quot;</a>, but will also return true for both composed roles and superclasses.</p>

<h2 id="meta">meta</h2>

<pre><code>  my $meta = Foo::Bar-&gt;meta;
  my @methods = $meta-&gt;get_method_list;</code></pre>

<p>Returns an object that will behave as if it is a <a href="https://metacpan.org/pod/Moose::Meta::Class">Moose metaclass</a> object for the class. If you call anything other than <code>make_immutable</code> on it, the object will be transparently upgraded to a genuine <a href="https://metacpan.org/pod/Moose::Meta::Class">Moose::Meta::Class</a> instance, loading Moose in the process if required. <code>make_immutable</code> itself is a no-op, since we generate metaclasses that are already immutable, and users converting from Moose had an unfortunate tendency to accidentally load Moose by calling it.</p>

<h1 id="LIFECYCLE-METHODS"><a id="LIFECYCLE"></a>LIFECYCLE METHODS</h1>

<p>There are several methods that you can define in your class to control construction and destruction of objects. They should be used rather than trying to modify <code>new</code> or <code>DESTROY</code> yourself.</p>

<h2 id="BUILDARGS">BUILDARGS</h2>

<pre><code>  around BUILDARGS =&gt; sub {
    my ( $orig, $class, @args ) = @_;

    return { attr1 =&gt; $args[0] }
      if @args == 1 &amp;&amp; !ref $args[0];

    return $class-&gt;$orig(@args);
  };

  Foo::Bar-&gt;new( 3 );</code></pre>

<p>This class method is used to transform the arguments to <code>new</code> into a hash reference of attribute values.</p>

<p>The default implementation accepts a hash or hash reference of named parameters. If it receives a single argument that isn&#39;t a hash reference it will throw an error.</p>

<p>You can override this method in your class to handle other types of options passed to the constructor.</p>

<p>This method should always return a hash reference of named options.</p>

<h2 id="FOREIGNBUILDARGS">FOREIGNBUILDARGS</h2>

<pre><code>  sub FOREIGNBUILDARGS {
    my ( $class, $options ) = @_;
    return $options-&gt;{foo};
  }</code></pre>

<p>If you are inheriting from a non-Moo class, the arguments passed to the parent class constructor can be manipulated by defining a <code>FOREIGNBUILDARGS</code> method. It will receive the same arguments as <a href="Moo.html#BUILDARGS">&quot;BUILDARGS&quot;</a>, and should return a list of arguments to pass to the parent class constructor.</p>

<h2 id="BUILD">BUILD</h2>

<pre><code>  sub BUILD {
    my ($self, $args) = @_;
    die &quot;foo and bar cannot be used at the same time&quot;
      if exists $args-&gt;{foo} &amp;&amp; exists $args-&gt;{bar};
  }</code></pre>

<p>On object creation, any <code>BUILD</code> methods in the class&#39;s inheritance hierarchy will be called on the object and given the results of <a href="Moo.html#BUILDARGS">&quot;BUILDARGS&quot;</a>. They each will be called in order from the parent classes down to the child, and thus should not themselves call the parent&#39;s method. Typically this is used for object validation or possibly logging.</p>

<h2 id="DEMOLISH">DEMOLISH</h2>

<pre><code>  sub DEMOLISH {
    my ($self, $in_global_destruction) = @_;
    ...
  }</code></pre>

<p>When an object is destroyed, any <code>DEMOLISH</code> methods in the inheritance hierarchy will be called on the object. They are given boolean to inform them if global destruction is in progress, and are called from the child class upwards to the parent. This is similar to <a href="Moo.html#BUILD">&quot;BUILD&quot;</a> methods but in the opposite order.</p>

<p>Note that this is implemented by a <code>DESTROY</code> method, which is only created on on the first construction of an object of your class. This saves on overhead for classes that are never instantiated or those without <code>DEMOLISH</code> methods. If you try to define your own <code>DESTROY</code>, this will cause undefined results.</p>

<h1 id="IMPORTED-SUBROUTINES"><a id="IMPORTED"></a>IMPORTED SUBROUTINES</h1>

<h2 id="extends">extends</h2>

<pre><code>  extends &#39;Parent::Class&#39;;</code></pre>

<p>Declares a base class. Multiple superclasses can be passed for multiple inheritance but please consider using <a href="https://metacpan.org/pod/Moo::Role">roles</a> instead. The class will be loaded but no errors will be triggered if the class can&#39;t be found and there are already subs in the class.</p>

<p>Calling extends more than once will REPLACE your superclasses, not add to them like &#39;use base&#39; would.</p>

<h2 id="with">with</h2>

<pre><code>  with &#39;Some::Role1&#39;;</code></pre>

<p>or</p>

<pre><code>  with &#39;Some::Role1&#39;, &#39;Some::Role2&#39;;</code></pre>

<p>Composes one or more <a href="https://metacpan.org/pod/Moo::Role">Moo::Role</a> (or <a href="./Role::Tiny.html">Role::Tiny</a>) roles into the current class. An error will be raised if these roles cannot be composed because they have conflicting method definitions. The roles will be loaded using the same mechanism as <code>extends</code> uses.</p>

<h2 id="has">has</h2>

<pre><code>  has attr =&gt; (
    is =&gt; &#39;ro&#39;,
  );</code></pre>

<p>Declares an attribute for the class.</p>

<pre><code>  package Foo;
  use Moo;
  has &#39;attr&#39; =&gt; (
    is =&gt; &#39;ro&#39;
  );

  package Bar;
  use Moo;
  extends &#39;Foo&#39;;
  has &#39;+attr&#39; =&gt; (
    default =&gt; sub { &quot;blah&quot; },
  );</code></pre>

<p>Using the <code>+</code> notation, it&#39;s possible to override an attribute.</p>

<pre><code>  has [qw(attr1 attr2 attr3)] =&gt; (
    is =&gt; &#39;ro&#39;,
  );</code></pre>

<p>Using an arrayref with multiple attribute names, it&#39;s possible to declare multiple attributes with the same options.</p>

<p>The options for <code>has</code> are as follows:</p>

<dl>

<dt id="is"><code>is</code></dt>
<dd>

<p><b>required</b>, may be <code>ro</code>, <code>lazy</code>, <code>rwp</code> or <code>rw</code>.</p>

<p><code>ro</code> stands for &quot;read-only&quot; and generates an accessor that dies if you attempt to write to it - i.e. a getter only - by defaulting <code>reader</code> to the name of the attribute.</p>

<p><code>lazy</code> generates a reader like <code>ro</code>, but also sets <code>lazy</code> to 1 and <code>builder</code> to <code>_build_${attribute_name}</code> to allow on-demand generated attributes. This feature was my attempt to fix my incompetence when originally designing <code>lazy_build</code>, and is also implemented by <a href="https://metacpan.org/pod/MooseX::AttributeShortcuts">MooseX::AttributeShortcuts</a>. There is, however, nothing to stop you using <code>lazy</code> and <code>builder</code> yourself with <code>rwp</code> or <code>rw</code> - it&#39;s just that this isn&#39;t generally a good idea so we don&#39;t provide a shortcut for it.</p>

<p><code>rwp</code> stands for &quot;read-write protected&quot; and generates a reader like <code>ro</code>, but also sets <code>writer</code> to <code>_set_${attribute_name}</code> for attributes that are designed to be written from inside of the class, but read-only from outside. This feature comes from <a href="https://metacpan.org/pod/MooseX::AttributeShortcuts">MooseX::AttributeShortcuts</a>.</p>

<p><code>rw</code> stands for &quot;read-write&quot; and generates a normal getter/setter by defaulting the <code>accessor</code> to the name of the attribute specified.</p>

</dd>
<dt id="isa"><code>isa</code></dt>
<dd>

<p>Takes a coderef which is used to validate the attribute. Unlike <a href="Moose.html">Moose</a>, Moo does not include a basic type system, so instead of doing <code>isa =&gt; &#39;Num&#39;</code>, one should do</p>

<pre><code>  use Scalar::Util qw(looks_like_number);
  ...
  isa =&gt; sub {
    die &quot;$_[0] is not a number!&quot; unless looks_like_number $_[0]
  },</code></pre>

<p>Note that the return value for <code>isa</code> is discarded. Only if the sub dies does type validation fail.</p>

<p><a href="Moo.html#SUB-QUOTE-AWARE">Sub::Quote aware</a></p>

<p>Since <a href="Moo.html">Moo</a> does <b>not</b> run the <code>isa</code> check before <code>coerce</code> if a coercion subroutine has been supplied, <code>isa</code> checks are not structural to your code and can, if desired, be omitted on non-debug builds (although if this results in an uncaught bug causing your program to break, the <a href="Moo.html">Moo</a> authors guarantee nothing except that you get to keep both halves).</p>

<p>If you want <a href="Moose.html">Moose</a> compatible or <a href="https://metacpan.org/pod/MooseX::Types">MooseX::Types</a> style named types, look at <a href="https://metacpan.org/pod/Type::Tiny">Type::Tiny</a>.</p>

<p>To cause your <code>isa</code> entries to be automatically mapped to named <a href="https://metacpan.org/pod/Moose::Meta::TypeConstraint">Moose::Meta::TypeConstraint</a> objects (rather than the default behaviour of creating an anonymous type), set:</p>

<pre><code>  $Moo::HandleMoose::TYPE_MAP{$isa_coderef} = sub {
    require MooseX::Types::Something;
    return MooseX::Types::Something::TypeName();
  };</code></pre>

<p>Note that this example is purely illustrative; anything that returns a <a href="https://metacpan.org/pod/Moose::Meta::TypeConstraint">Moose::Meta::TypeConstraint</a> object or something similar enough to it to make <a href="Moose.html">Moose</a> happy is fine.</p>

</dd>
<dt id="coerce"><code>coerce</code></dt>
<dd>

<p>Takes a coderef which is meant to coerce the attribute. The basic idea is to do something like the following:</p>

<pre><code> coerce =&gt; sub {
   $_[0] % 2 ? $_[0] : $_[0] + 1
 },</code></pre>

<p>Note that <a href="Moo.html">Moo</a> will always execute your coercion: this is to permit <code>isa</code> entries to be used purely for bug trapping, whereas coercions are always structural to your code. We do, however, apply any supplied <code>isa</code> check after the coercion has run to ensure that it returned a valid value.</p>

<p><a href="Moo.html#SUB-QUOTE-AWARE">Sub::Quote aware</a></p>

<p>If the <code>isa</code> option is a blessed object providing a <code>coerce</code> or <code>coercion</code> method, then the <code>coerce</code> option may be set to just <code>1</code>.</p>

</dd>
<dt id="handles"><code>handles</code></dt>
<dd>

<p>Takes a string</p>

<pre><code>  handles =&gt; &#39;RobotRole&#39;</code></pre>

<p>Where <code>RobotRole</code> is a <a href="https://metacpan.org/pod/Moo::Role">role</a> that defines an interface which becomes the list of methods to handle.</p>

<p>Takes a list of methods</p>

<pre><code>  handles =&gt; [ qw( one two ) ]</code></pre>

<p>Takes a hashref</p>

<pre><code>  handles =&gt; {
    un =&gt; &#39;one&#39;,
  }</code></pre>

</dd>
<dt id="trigger"><code>trigger</code></dt>
<dd>

<p>Takes a coderef which will get called any time the attribute is set. This includes the constructor, but not default or built values. The coderef will be invoked against the object with the new value as an argument.</p>

<p>If you set this to just <code>1</code>, it generates a trigger which calls the <code>_trigger_${attr_name}</code> method on <code>$self</code>. This feature comes from <a href="https://metacpan.org/pod/MooseX::AttributeShortcuts">MooseX::AttributeShortcuts</a>.</p>

<p>Note that Moose also passes the old value, if any; this feature is not yet supported.</p>

<p><a href="Moo.html#SUB-QUOTE-AWARE">Sub::Quote aware</a></p>

</dd>
<dt id="default"><code>default</code></dt>
<dd>

<p>Takes a coderef which will get called with $self as its only argument to populate an attribute if no value for that attribute was supplied to the constructor. Alternatively, if the attribute is lazy, <code>default</code> executes when the attribute is first retrieved if no value has yet been provided.</p>

<p>If a simple scalar is provided, it will be inlined as a string. Any non-code reference (hash, array) will result in an error - for that case instead use a code reference that returns the desired value.</p>

<p>Note that if your default is fired during new() there is no guarantee that other attributes have been populated yet so you should not rely on their existence.</p>

<p><a href="Moo.html#SUB-QUOTE-AWARE">Sub::Quote aware</a></p>

</dd>
<dt id="predicate"><code>predicate</code></dt>
<dd>

<p>Takes a method name which will return true if an attribute has a value.</p>

<p>If you set this to just <code>1</code>, the predicate is automatically named <code>has_${attr_name}</code> if your attribute&#39;s name does not start with an underscore, or <code>_has_${attr_name_without_the_underscore}</code> if it does. This feature comes from <a href="https://metacpan.org/pod/MooseX::AttributeShortcuts">MooseX::AttributeShortcuts</a>.</p>

</dd>
<dt id="builder"><code>builder</code></dt>
<dd>

<p>Takes a method name which will be called to create the attribute - functions exactly like default except that instead of calling</p>

<pre><code>  $default-&gt;($self);</code></pre>

<p>Moo will call</p>

<pre><code>  $self-&gt;$builder;</code></pre>

<p>The following features come from <a href="https://metacpan.org/pod/MooseX::AttributeShortcuts">MooseX::AttributeShortcuts</a>:</p>

<p>If you set this to just <code>1</code>, the builder is automatically named <code>_build_${attr_name}</code>.</p>

<p>If you set this to a coderef or code-convertible object, that variable will be installed under <code>$class::_build_${attr_name}</code> and the builder set to the same name.</p>

</dd>
<dt id="clearer"><code>clearer</code></dt>
<dd>

<p>Takes a method name which will clear the attribute.</p>

<p>If you set this to just <code>1</code>, the clearer is automatically named <code>clear_${attr_name}</code> if your attribute&#39;s name does not start with an underscore, or <code>_clear_${attr_name_without_the_underscore}</code> if it does. This feature comes from <a href="https://metacpan.org/pod/MooseX::AttributeShortcuts">MooseX::AttributeShortcuts</a>.</p>

<p><b>NOTE:</b> If the attribute is <code>lazy</code>, it will be regenerated from <code>default</code> or <code>builder</code> the next time it is accessed. If it is not lazy, it will be <code>undef</code>.</p>

</dd>
<dt id="lazy"><code>lazy</code></dt>
<dd>

<p><b>Boolean</b>. Set this if you want values for the attribute to be grabbed lazily. This is usually a good idea if you have a <a href="Moo.html#builder">&quot;builder&quot;</a> which requires another attribute to be set.</p>

</dd>
<dt id="required"><code>required</code></dt>
<dd>

<p><b>Boolean</b>. Set this if the attribute must be passed on object instantiation.</p>

</dd>
<dt id="reader"><code>reader</code></dt>
<dd>

<p>The name of the method that returns the value of the attribute. If you like Java style methods, you might set this to <code>get_foo</code></p>

</dd>
<dt id="writer"><code>writer</code></dt>
<dd>

<p>The value of this attribute will be the name of the method to set the value of the attribute. If you like Java style methods, you might set this to <code>set_foo</code>.</p>

</dd>
<dt id="weak_ref"><code>weak_ref</code></dt>
<dd>

<p><b>Boolean</b>. Set this if you want the reference that the attribute contains to be weakened. Use this when circular references, which cause memory leaks, are possible.</p>

</dd>
<dt id="init_arg"><code>init_arg</code></dt>
<dd>

<p>Takes the name of the key to look for at instantiation time of the object. A common use of this is to make an underscored attribute have a non-underscored initialization name. <code>undef</code> means that passing the value in on instantiation is ignored.</p>

</dd>
<dt id="moosify"><code>moosify</code></dt>
<dd>

<p>Takes either a coderef or array of coderefs which is meant to transform the given attributes specifications if necessary when upgrading to a Moose role or class. You shouldn&#39;t need this by default, but is provided as a means of possible extensibility.</p>

</dd>
</dl>

<h2 id="before">before</h2>

<pre><code>  before foo =&gt; sub { ... };</code></pre>

<p>See <a href="https://metacpan.org/pod/Class::Method::Modifiers#before-method(s)-=%3E-sub-%7B-...-%7D;">&quot;before method(s) =&gt; sub { ... };&quot; in Class::Method::Modifiers</a> for full documentation.</p>

<h2 id="around">around</h2>

<pre><code>  around foo =&gt; sub { ... };</code></pre>

<p>See <a href="https://metacpan.org/pod/Class::Method::Modifiers#around-method(s)-=%3E-sub-%7B-...-%7D;">&quot;around method(s) =&gt; sub { ... };&quot; in Class::Method::Modifiers</a> for full documentation.</p>

<h2 id="after">after</h2>

<pre><code>  after foo =&gt; sub { ... };</code></pre>

<p>See <a href="https://metacpan.org/pod/Class::Method::Modifiers#after-method(s)-=%3E-sub-%7B-...-%7D;">&quot;after method(s) =&gt; sub { ... };&quot; in Class::Method::Modifiers</a> for full documentation.</p>

<h1 id="SUB-QUOTE-AWARE"><a id="SUB"></a>SUB QUOTE AWARE</h1>

<p><a href="https://metacpan.org/pod/Sub::Quote#quote_sub">&quot;quote_sub&quot; in Sub::Quote</a> allows us to create coderefs that are &quot;inlineable,&quot; giving us a handy, XS-free speed boost. Any option that is <a href="https://metacpan.org/pod/Sub::Quote">Sub::Quote</a> aware can take advantage of this.</p>

<p>To do this, you can write</p>

<pre><code>  use Sub::Quote;

  use Moo;
  use namespace::clean;

  has foo =&gt; (
    is =&gt; &#39;ro&#39;,
    isa =&gt; quote_sub(q{ die &quot;Not &lt;3&quot; unless $_[0] &lt; 3 })
  );</code></pre>

<p>which will be inlined as</p>

<pre><code>  do {
    local @_ = ($_[0]-&gt;{foo});
    die &quot;Not &lt;3&quot; unless $_[0] &lt; 3;
  }</code></pre>

<p>or to avoid localizing @_,</p>

<pre><code>  has foo =&gt; (
    is =&gt; &#39;ro&#39;,
    isa =&gt; quote_sub(q{ my ($val) = @_; die &quot;Not &lt;3&quot; unless $val &lt; 3 })
  );</code></pre>

<p>which will be inlined as</p>

<pre><code>  do {
    my ($val) = ($_[0]-&gt;{foo});
    die &quot;Not &lt;3&quot; unless $val &lt; 3;
  }</code></pre>

<p>See <a href="https://metacpan.org/pod/Sub::Quote">Sub::Quote</a> for more information, including how to pass lexical captures that will also be compiled into the subroutine.</p>

<h1 id="CLEANING-UP-IMPORTS"><a id="CLEANING"></a>CLEANING UP IMPORTS</h1>

<p><a href="Moo.html">Moo</a> will not clean up imported subroutines for you; you will have to do that manually. The recommended way to do this is to declare your imports first, then <code>use Moo</code>, then <code>use namespace::clean</code>. Anything imported before <a href="https://metacpan.org/pod/namespace::clean">namespace::clean</a> will be scrubbed. Anything imported or declared after will be still be available.</p>

<pre><code>  package Record;

  use Digest::MD5 qw(md5_hex);

  use Moo;
  use namespace::clean;

  has name =&gt; (is =&gt; &#39;ro&#39;, required =&gt; 1);
  has id =&gt; (is =&gt; &#39;lazy&#39;);
  sub _build_id {
    my ($self) = @_;
    return md5_hex($self-&gt;name);
  }

  1;</code></pre>

<p>For example if you were to import these subroutines after <a href="https://metacpan.org/pod/namespace::clean">namespace::clean</a> like this</p>

<pre><code>  use namespace::clean;

  use Digest::MD5 qw(md5_hex);
  use Moo;</code></pre>

<p>then any <code>Record</code> <code>$r</code> would have methods such as <code>$r-&gt;md5_hex()</code>, <code>$r-&gt;has()</code> and <code>$r-&gt;around()</code> - almost certainly not what you intend!</p>

<p><a href="https://metacpan.org/pod/Moo::Role">Moo::Role</a>s behave slightly differently. Since their methods are composed into the consuming class, they can do a little more for you automatically. As long as you declare your imports before calling <code>use Moo::Role</code>, those imports and the ones <a href="https://metacpan.org/pod/Moo::Role">Moo::Role</a> itself provides will not be composed into consuming classes so there&#39;s usually no need to use <a href="https://metacpan.org/pod/namespace::clean">namespace::clean</a>.</p>

<p><b>On <a href="https://metacpan.org/pod/namespace::autoclean">namespace::autoclean</a>:</b> Older versions of <a href="https://metacpan.org/pod/namespace::autoclean">namespace::autoclean</a> would inflate Moo classes to full <a href="Moose.html">Moose</a> classes, losing the benefits of Moo. If you want to use <a href="https://metacpan.org/pod/namespace::autoclean">namespace::autoclean</a> with a Moo class, make sure you are using version 0.16 or newer.</p>

<h1 id="INCOMPATIBILITIES-WITH-MOOSE"><a id="INCOMPATIBILITIES"></a>INCOMPATIBILITIES WITH MOOSE</h1>

<h2 id="TYPES">TYPES</h2>

<p>There is no built-in type system. <code>isa</code> is verified with a coderef; if you need complex types, <a href="https://metacpan.org/pod/Type::Tiny">Type::Tiny</a> can provide types, type libraries, and will work seamlessly with both <a href="Moo.html">Moo</a> and <a href="Moose.html">Moose</a>. <a href="https://metacpan.org/pod/Type::Tiny">Type::Tiny</a> can be considered the successor to <a href="https://metacpan.org/pod/MooseX::Types">MooseX::Types</a> and provides a similar API, so that you can write</p>

<pre><code>  use Types::Standard qw(Int);
  has days_to_live =&gt; (is =&gt; &#39;ro&#39;, isa =&gt; Int);</code></pre>

<h2 id="API-INCOMPATIBILITIES"><a id="API"></a>API INCOMPATIBILITIES</h2>

<p><code>initializer</code> is not supported in core since the author considers it to be a bad idea and Moose best practices recommend avoiding it. Meanwhile <code>trigger</code> or <code>coerce</code> are more likely to be able to fulfill your needs.</p>

<p>No support for <code>super</code>, <code>override</code>, <code>inner</code>, or <code>augment</code> - the author considers augment to be a bad idea, and override can be translated:</p>

<pre><code>  override foo =&gt; sub {
    ...
    super();
    ...
  };

  around foo =&gt; sub {
    my ($orig, $self) = (shift, shift);
    ...
    $self-&gt;$orig(@_);
    ...
  };</code></pre>

<p>The <code>dump</code> method is not provided by default. The author suggests loading <a href="https://metacpan.org/pod/Devel::Dwarn">Devel::Dwarn</a> into <code>main::</code> (via <code>perl -MDevel::Dwarn ...</code> for example) and using <code>$obj-&gt;$::Dwarn()</code> instead.</p>

<p><a href="Moo.html#default">&quot;default&quot;</a> only supports coderefs and plain scalars, because passing a hash or array reference as a default is almost always incorrect since the value is then shared between all objects using that default.</p>

<p><code>lazy_build</code> is not supported; you are instead encouraged to use the <code>is =&gt; &#39;lazy&#39;</code> option supported by <a href="Moo.html">Moo</a> and <a href="https://metacpan.org/pod/MooseX::AttributeShortcuts">MooseX::AttributeShortcuts</a>.</p>

<p><code>auto_deref</code> is not supported since the author considers it a bad idea and it has been considered best practice to avoid it for some time.</p>

<p><code>documentation</code> will show up in a <a href="Moose.html">Moose</a> metaclass created from your class but is otherwise ignored. Then again, <a href="Moose.html">Moose</a> ignores it as well, so this is arguably not an incompatibility.</p>

<p>Since <code>coerce</code> does not require <code>isa</code> to be defined but <a href="Moose.html">Moose</a> does require it, the metaclass inflation for coerce alone is a trifle insane and if you attempt to subtype the result will almost certainly break.</p>

<p>Handling of warnings: when you <code>use Moo</code> we enable strict and warnings, in a similar way to Moose. The authors recommend the use of <code>strictures</code>, which enables FATAL warnings, and several extra pragmas when used in development: <a href="indirect.html">indirect</a>, <a href="multidimensional.html">multidimensional</a>, and <a href="./bareword::filehandles.html">bareword::filehandles</a>.</p>

<p>Additionally, <a href="Moo.html">Moo</a> supports a set of attribute option shortcuts intended to reduce common boilerplate. The set of shortcuts is the same as in the <a href="Moose.html">Moose</a> module <a href="https://metacpan.org/pod/MooseX::AttributeShortcuts">MooseX::AttributeShortcuts</a> as of its version 0.009+. So if you:</p>

<pre><code>  package MyClass;
  use Moo;
  use strictures 2;</code></pre>

<p>The nearest <a href="Moose.html">Moose</a> invocation would be:</p>

<pre><code>  package MyClass;

  use Moose;
  use warnings FATAL =&gt; &quot;all&quot;;
  use MooseX::AttributeShortcuts;</code></pre>

<p>or, if you&#39;re inheriting from a non-Moose class,</p>

<pre><code>  package MyClass;

  use Moose;
  use MooseX::NonMoose;
  use warnings FATAL =&gt; &quot;all&quot;;
  use MooseX::AttributeShortcuts;</code></pre>

<h2 id="META-OBJECT"><a id="META"></a>META OBJECT</h2>

<p>There is no meta object. If you need this level of complexity you need <a href="Moose.html">Moose</a> - Moo is small because it explicitly does not provide a metaprotocol. However, if you load <a href="Moose.html">Moose</a>, then</p>

<pre><code>  Class::MOP::class_of($moo_class_or_role)</code></pre>

<p>will return an appropriate metaclass pre-populated by <a href="Moo.html">Moo</a>.</p>

<h2 id="IMMUTABILITY">IMMUTABILITY</h2>

<p>Finally, Moose requires you to call</p>

<pre><code>  __PACKAGE__-&gt;meta-&gt;make_immutable;</code></pre>

<p>at the end of your class to get an inlined (i.e. not horribly slow) constructor. Moo does it automatically the first time -&gt;new is called on your class. (<code>make_immutable</code> is a no-op in Moo to ease migration.)</p>

<p>An extension <a href="https://metacpan.org/pod/MooX::late">MooX::late</a> exists to ease translating Moose packages to Moo by providing a more Moose-like interface.</p>

<h1 id="COMPATIBILITY-WITH-OLDER-PERL-VERSIONS"><a id="COMPATIBILITY"></a>COMPATIBILITY WITH OLDER PERL VERSIONS</h1>

<p>Moo is compatible with perl versions back to 5.6. When running on older versions, additional prerequisites will be required. If you are packaging a script with its dependencies, such as with <a href="https://metacpan.org/pod/App::FatPacker">App::FatPacker</a>, you will need to be certain that the extra prerequisites are included.</p>

<dl>

<dt id="MRO::Compat"><a id="MRO"></a><a href="./MRO::Compat.html">MRO::Compat</a></dt>
<dd>

<p>Required on perl versions prior to 5.10.0.</p>

</dd>
<dt id="Devel::GlobalDestruction"><a id="Devel"></a><a href="https://metacpan.org/pod/Devel::GlobalDestruction">Devel::GlobalDestruction</a></dt>
<dd>

<p>Required on perl versions prior to 5.14.0.</p>

</dd>
</dl>

<h1 id="SUPPORT">SUPPORT</h1>

<p>IRC: #moose on irc.perl.org</p>

<p><a href="https://chat.mibbit.com/#moose@irc.perl.org">(click for instant chatroom login)

</a></p>



<p>Bugtracker: <a href="https://rt.cpan.org/Public/Dist/Display.html?Name=Moo">https://rt.cpan.org/Public/Dist/Display.html?Name=Moo</a></p>

<p>Git repository: <a>git://github.com/moose/Moo.git</a></p>

<p>Git browser: <a href="https://github.com/moose/Moo">https://github.com/moose/Moo</a></p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>mst - Matt S. Trout (cpan:MSTROUT) &lt;mst@shadowcat.co.uk&gt;</p>

<h1 id="CONTRIBUTORS">CONTRIBUTORS</h1>

<p>dg - David Leadbeater (cpan:DGL) &lt;dgl@dgl.cx&gt;</p>

<p>frew - Arthur Axel &quot;fREW&quot; Schmidt (cpan:FREW) &lt;frioux@gmail.com&gt;</p>

<p>hobbs - Andrew Rodland (cpan:ARODLAND) &lt;arodland@cpan.org&gt;</p>

<p>jnap - John Napiorkowski (cpan:JJNAPIORK) &lt;jjn1056@yahoo.com&gt;</p>

<p>ribasushi - Peter Rabbitson (cpan:RIBASUSHI) &lt;ribasushi@cpan.org&gt;</p>

<p>chip - Chip Salzenberg (cpan:CHIPS) &lt;chip@pobox.com&gt;</p>

<p>ajgb - Alex J. G. Burzy&#x144;ski (cpan:AJGB) &lt;ajgb@cpan.org&gt;</p>

<p>doy - Jesse Luehrs (cpan:DOY) &lt;doy at tozt dot net&gt;</p>

<p>perigrin - Chris Prather (cpan:PERIGRIN) &lt;chris@prather.org&gt;</p>

<p>Mithaldu - Christian Walde (cpan:MITHALDU) &lt;walde.christian@googlemail.com&gt;</p>

<p>ilmari - Dagfinn Ilmari Manns&aring;ker (cpan:ILMARI) &lt;ilmari@ilmari.org&gt;</p>

<p>tobyink - Toby Inkster (cpan:TOBYINK) &lt;tobyink@cpan.org&gt;</p>

<p>haarg - Graham Knop (cpan:HAARG) &lt;haarg@cpan.org&gt;</p>

<p>mattp - Matt Phillips (cpan:MATTP) &lt;mattp@cpan.org&gt;</p>

<p>bluefeet - Aran Deltac (cpan:BLUEFEET) &lt;bluefeet@gmail.com&gt;</p>

<p>bubaflub - Bob Kuo (cpan:BUBAFLUB) &lt;bubaflub@cpan.org&gt;</p>

<p>ether = Karen Etheridge (cpan:ETHER) &lt;ether@cpan.org&gt;</p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>Copyright (c) 2010-2015 the Moo <a href="Moo.html#AUTHOR">&quot;AUTHOR&quot;</a> and <a href="Moo.html#CONTRIBUTORS">&quot;CONTRIBUTORS&quot;</a> as listed above.</p>

<h1 id="LICENSE">LICENSE</h1>

<p>This library is free software and may be distributed under the same terms as perl itself. See <a href="https://dev.perl.org/licenses/">https://dev.perl.org/licenses/</a>.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Moo, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Moo</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Moo</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="Moo.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
